package com.bm.server.controller;

import com.bm.common.vo.R;
import com.bm.server.service.intf.MyfriendService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * .=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
 * |                     ______                     |
 * |                  .-"      "-.                  |
 * |                 /            \                 |
 * |     _          |              |          _     |
 * |    ( \         |,  .-.  .-.  ,|         / )    |
 * |     > "=._     | )(__/  \__)( |     _.=" <     |
 * |    (_/"=._"=._ |/     /\     \| _.="_.="\_)    |
 * |           "=._"(_     ^^     _)"_.="           |
 * |               "=\__|IIIIII|__/="               |
 * |              _.="| \IIIIII/ |"=._              |
 * |    _     _.="_.="\          /"=._"=._     _    |
 * |   ( \_.="_.="     `--------`     "=._"=._/ )   |
 * |    > _.="                            "=._ <    |
 * |   (_/                                    \_)   |
 * |                                                |
 * '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='
 * -----------------代码的搬运工-----------------
 *
 * @Date: 2022/07/20/20:42
 */
@RestController
@RequestMapping("/server/myfriend/")
public class MyfriendController {
    @Resource
    private MyfriendService service;
    @GetMapping("save.do")
    public R save(int uid,String friendid){
        return service.save(uid,friendid);
    }
    @GetMapping("isfriend.do")
    public R isfriend(int uid,String friendid){
        return service.isfriend(uid, friendid);
    }
    @GetMapping("selectmyfriend")
    public R selectmyfriend(int uid){
        return service.selectmyfriends(uid);
    }
    @GetMapping("deleteByUid")
    public R delete(int uid,String friendid){
        return service.delete(uid,friendid);

    }
}
